LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \
live555/groupsock/NetAddress.cpp \
live555/groupsock/Groupsock.cpp \
live555/groupsock/GroupsockHelper.cpp \
live555/groupsock/NetInterface.cpp \
live555/groupsock/IOHandlers.cpp \
live555/groupsock/GroupEId.cpp \
live555/groupsock/inet.c \
live555/liveMedia/Base64.cpp \
live555/liveMedia/BasicUDPSink.cpp \
live555/liveMedia/BitVector.cpp \
live555/liveMedia/ByteStreamFileSource.cpp \
live555/liveMedia/DigestAuthentication.cpp \
live555/liveMedia/FileServerMediaSubsession.cpp \
live555/liveMedia/FramedFileSource.cpp \
live555/liveMedia/FramedFilter.cpp \
live555/liveMedia/FramedSource.cpp \
live555/liveMedia/GenericMediaServer.cpp \
live555/liveMedia/H264or5VideoRTPSink.cpp \
live555/liveMedia/H264or5VideoStreamDiscreteFramer.cpp \
live555/liveMedia/H264or5VideoStreamFramer.cpp \
live555/liveMedia/H264VideoFileServerMediaSubsession.cpp \
live555/liveMedia/H264VideoRTPSink.cpp \
live555/liveMedia/H264VideoRTPSource.cpp \
live555/liveMedia/H264VideoStreamDiscreteFramer.cpp \
live555/liveMedia/H264VideoStreamFramer.cpp \
live555/liveMedia/InputFile.cpp \
live555/liveMedia/Locale.cpp \
live555/liveMedia/Media.cpp \
live555/liveMedia/MediaSession.cpp \
live555/liveMedia/MediaSink.cpp \
live555/liveMedia/MediaSource.cpp \
live555/liveMedia/MPEGVideoStreamFramer.cpp \
live555/liveMedia/MPEGVideoStreamParser.cpp \
live555/liveMedia/MultiFramedRTPSink.cpp \
live555/liveMedia/MultiFramedRTPSource.cpp \
live555/liveMedia/OnDemandServerMediaSubsession.cpp \
live555/liveMedia/ourMD5.cpp \
live555/liveMedia/rtcp_from_spec.c \
live555/liveMedia/rtcp_from_spec.h \
live555/liveMedia/RTCP.cpp \
live555/liveMedia/RTPInterface.cpp \
live555/liveMedia/RTPSink.cpp \
live555/liveMedia/RTPSource.cpp \
live555/liveMedia/RTSPClient.cpp \
live555/liveMedia/RTSPCommon.cpp \
live555/liveMedia/RTSPRegisterSender.cpp \
live555/liveMedia/RTSPServer.cpp \
live555/liveMedia/ServerMediaSession.cpp \
live555/liveMedia/StreamParser.cpp \
live555/liveMedia/VideoRTPSink.cpp \
live555/liveMedia/MPEG4LATMAudioRTPSource.cpp \
live555/liveMedia/MPEG4GenericRTPSource.cpp \
live555/liveMedia/MPEG4GenericRTPSink.cpp \
live555/liveMedia/AMRAudioRTPSink.cpp \
live555/liveMedia/AMRAudioRTPSource.cpp \
live555/liveMedia/AMRAudioSource.cpp \
live555/liveMedia/AudioRTPSink.cpp \
sct/rtspserver/rtspserver.cpp \
sct/rtspserver/h264videoservermediasubsession.cpp \
../libsct/sct/core/common.cpp \
sct/rtspserver/h264videosource.cpp \
sct/rtspserver/h264streamsource.cpp \
../libsct/sct/core/mutex.cpp \
sct/rtspserver/rtspserverinterface.cpp \
sct/rtspserver/live555server.cpp \
sct/rtspserver/streamsource.cpp \
sct/rtspserver/aacstreamsource.cpp \
sct/rtspserver/aacservermediasubsession.cpp \
sct/rtspserver/aacsource.cpp \
sct/rtspserver/amrsource.cpp \
sct/rtspserver/amrservermediasubsession.cpp \
live555/UsageEnvironment/UsageEnvironment.cpp \
live555/UsageEnvironment/strDup.cpp \
live555/UsageEnvironment/HashTable.cpp \
live555/BasicUsageEnvironment/DelayQueue.cpp \
live555/BasicUsageEnvironment/BasicTaskScheduler0.cpp \
live555/BasicUsageEnvironment/BasicHashTable.cpp \
live555/BasicUsageEnvironment/BasicUsageEnvironment0.cpp \
live555/BasicUsageEnvironment/BasicTaskScheduler.cpp \
live555/BasicUsageEnvironment/BasicUsageEnvironment.cpp \
sct/rtspclient/rtspclient.cpp \
sct/rtspclient/rtspclientinterface.cpp \

$(warning "$(LOCAL_PATH)")

LOCAL_C_INCLUDES := \
    $(LOCAL_PATH)/live555/groupsock/include \
	$(LOCAL_PATH)/live555//BasicUsageEnvironment/include \
	$(LOCAL_PATH)/live555//UsageEnvironment/include \
	$(LOCAL_PATH)/live555//liveMedia/include \
	$(LOCAL_PATH)/ \
	$(LOCAL_PATH)/../libsct/ \
	$(TOP)/prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/include \
	$(TOP)/prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include \

LOCAL_SHARED_LIBRARIES := \
	libcutils \
	libutils \

LOCAL_MODULE:= libmdetrtsp
LOCAL_LDLIBS += -lphtread -llog 

LOCAL_CFLAGS := -O2 -g -W -Wall -frtti
LOCAL_CPPFLAGS += -DXLOCALE_NOT_USED=1 -DNO_SSTREAM=1 -DNULL=0 -O2 -fexceptions -DSCT_ANDROID -DSCT_TAG=' "rtsp" '

LOCAL_LDFLAGS += -L$(TOP)/prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/ -lgnustl_shared

include $(BUILD_SHARED_LIBRARY)


